<?php 
/**
* @author Oliver Leisalu, Inditel Meedia
* @package DomFg
* @subpackage Input
*/
class DomFgHtmlEditor extends DomFgTextField {
	
	protected $width = '100%';
	
	protected $height = '100%';
	
	protected $imageManagerUrl;
	
	public function width( $width ) {
		$this->width = $width;
		return $this;
	}
	
	public function height( $height ) {
		$this->height = $height;
		return $this;
	}
	
	public function imageManagerUrl( $imageManagerUrl ) {
		$this->imageManagerUrl = $imageManagerUrl;
		return $this;
	}
	
	public function value( $value ) {
		$this->value = htmlspecialchars($value);
		return $this;
	}
	
	public static function parsePost( $name, &$value ) {
		return self::getReturnValue($value);
	}
	
	public function render() {
		$renderer = $this->getRenderer();
		$renderer->assign('input', $this );
		return $renderer->fetch('Input/HtmlEditor.html');
	}
	

}
?>